﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace Walson.Form
{
    public partial class TabControl : UserControl
    {
        public TabPage Pages;

        public TabControl()
        {
            InitializeComponent();
            TabPage tabPage = new TabPage();
            System.Windows.Forms.TabControl tab = new System.Windows.Forms.TabControl();
            Pages = new TabPage();
            Pages.Add("fgsdfgdf");
            //tab.TabPages[]
            
        }


       
    }


    public class TabPage : Panel
    {
        private ArrayList arlPages;

        public TabPage()
        {
            arlPages = new ArrayList();
        }

        public Panel this[int index]
        {
            get { return (Panel)arlPages[index]; }
            set { arlPages[index] = value; }
        }

        public void Add(string Name)
        {
            
        }
    }




}
